f = open(r'E:\flask\foo.txt', 'w', encoding='gbk')
with open(r"b_file\a.txt","r") as file:
    print(f.read())
with open(r"..\a_file\a2.txt", "r") as f:
    print(f.read())